package Utility
{
	import mx.collections.ArrayCollection;
	
	import zdims.control.MultiPnts;
	import zdims.map.IMSMap;
	
	public class MultiPntsLocator
	{
		public var _pnts:MultiPnts=null;
		public function MultiPntsLocator(imsMap:IMSMap, pnts:MultiPnts, arrayPnts:ArrayCollection, imgSrc:String,markerType:String)
		{
			_pnts=pnts;
			if (pnts != null && arrayPnts != null && imsMap!=null)
				_pnts.removeAllPnt();
			_pnts=new MultiPnts(arrayPnts, imgSrc,markerType);
			_pnts.addToMap(imsMap);
		}
		
		public function getPntByID(id):void
		{
			if(_pnts!=null)
				_pnts.showPntById(id);
		}

	}
}